import { request } from "@/utils/request002";

// 页面权字符下拉
export const powerSelect = () => {
  return request({
    url: '/organization/powerSelect',
    method: 'POST'
  })
}

// 分页
export const roleDataPage = (data: any) => {
  return request({
    url: '/organization/roleDataPage',
    method: 'POST',
    data
  })
}

// 新增职位
export const addRole = (data: any) => {
  return request({
    url: '/organization/addRole',
    method: 'POST',
    data
  })
}

// 编辑职位
export const editRole = (data: any) => {
  return request({
    url: '/organization/editRole',
    method: 'POST',
    data
  })
}

// 删除职位
export const deleteRole = (data: any) => {
  return request({
    url: '/organization/deleteRole',
    method: 'POST',
    data
  })
}